<template>
  <TitleBar/>
  <router-view/>
</template>

<script>
export default {
  name:"App",
  created() {
    let tokens = localStorage.tokens
    if (tokens) {
      let userInfo = JSON.parse(localStorage.info)
      this.$store.commit('login',userInfo)
    }
  }
}
</script>

<style>
html{
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body{
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100%;
  display: flex;
  flex-direction: column;
}

</style>
